package com.aixx.springcloud.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;


import javax.annotation.Resource;

/**
 * @author shkstart
 * @create 2021-01-28 7:14
 */
@RestController
public class ordercontroller {

    public static final String INVOKE_URL ="http://cloud-provider-service";

    @Resource
    private RestTemplate restTemplate;
     @GetMapping("customer/payment/zoo")
     public String paymentiNfo(){
         return restTemplate.getForObject(INVOKE_URL+"/payment/zoo/",String.class);
     }


}
